package appapi.service;

import appapi.Request.AccessAuthPageReq;
import appapi.Request.bridge.AccessAuthVo;
import appapi.Request.bridge.AccessOperReq;
import appapi.Vo.brider.AccessAuthVO;
import appapi.Vo.brider.AccessVO;
import appapi.common.ResponseBean;
import appapi.entity.basic.UserInfo;
import appapi.entity.bridge.AccessAuthInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author hlm
 * @date
 * @description: 门禁人员
 */
@Repository
public interface AccessAuthService extends IService<AccessAuthInfo> {

    /**
     * 分页查询门禁人员列表
     *
     * @return
     */
    IPage<AccessAuthVO> getAccessAuthByPage(AccessAuthPageReq req);

    /**
     * 授权
     *
     * @return
     */
    void insertAccessAuth(AccessAuthVo accessAuth , UserInfo userInfo);


    /**
     * 删除
     *
     * @return
     */
    void delAccessAuth(Long id);

    /**
     * 授权-待授权人员查询
     *
     * @return
     */
    ResponseBean getOperator(AccessOperReq req);

    /**
     * 授权-门禁查询
     *
     * @return
     */
    List<AccessVO> getAccess(Long projId);

}
